package com.yl.auth.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yl.auth.model.entity.Chuangwei;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author 王帅洋
 * @belongsProject: ln-ylHouse
 * @belongsPackage: com.ln.model.entity
 * @Date 2023/6/16 9:47
 * @Description: TODO
 * @Version: 1.0
 */
@ApiModel(value = "入院核定费用")
@Data
@TableName("ruyuanfeiyong")
public class RuyuanfeiBean {
    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;
    @TableField("laoren_id")
    @ApiModelProperty(value = "老人外键")
    private Long laorenId;
    @ApiModelProperty(value = "入住时间")
    @TableField("check_in_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date checkInTime;
    @ApiModelProperty(value = "核定天数")
    @TableField("vouch_time")
    private Integer vouchTime;
    @ApiModelProperty(value = "押金")
    @TableField("cash_pledge")
    private double cashPledge;
    @ApiModelProperty(value = "一次性代办费")
    @TableField("disposable_price")
    private double disposablePrice;
    @ApiModelProperty(value = "床位费")
    @TableField("bed_price")
    private double bedPrice;
    @ApiModelProperty(value = "护理费")
    @TableField("nurse_price")
    private double nursePrice;
    @ApiModelProperty(value = "膳食费")
    @TableField("food_price")
    private double foodPrice;
    @ApiModelProperty(value = "定金抵扣")
    @TableField("earnest_price")
    private double earnestPrice;

    @ApiModelProperty(value = "合计")
    @TableField("total")
    private double total;
    @ApiModelProperty(value = "状态：0待缴费，1已缴费")
    @TableField("state")
    private Integer state;

    @TableField("tianshu")
    private double tianshu;

    @TableField("hulifei")
    private double hulifei;

    @TableField("chuangweifei")
    private double chuangweifei;
    @TableField("shanshifei")
    private double shanshifei;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String gender;
    @TableField(exist = false)
    private Integer age;
    @TableField("bed_id")
    private Long bedId;

    @ApiModelProperty("入院核定费用床费")
    @TableField("bed_prices")
    private double bedPrices;

    @ApiModelProperty("入院核定费用护理费")
    @TableField("huli_price")
    private double huliPrice;

    @ApiModelProperty("入院核定费用膳食费用")
    @TableField("shanshi_price")
    private double shanshiPrice;

    @ApiModelProperty("入院核定费用总价")
    @TableField("zongjia")
    private double zongjia;

    @ApiModelProperty("床位的价格下单时用的（天）")
    @TableField(exist = false)
    private double xiaPrice;

    @ApiModelProperty("床位加上总天数的价格")
    @TableField(exist = false)
    private double xiaTotal;

    @ApiModelProperty("入院总费用时间段")
    @TableField("zlocal_date")
    private LocalDate zlocalDate;

    @ApiModelProperty("入院核定时间段")
    @TableField("hlocal_date")
    private LocalDate hlocalDate;

    @ApiModelProperty("创建当前时间")
    @TableField("new_date")
    private LocalDate newDate;

    @ApiModelProperty("协议地址")
    @TableField("url")
    private String url;

}
